package com.vdf.sisconsolid.rest;

import java.util.HashMap;
import java.util.Map;

public abstract class RestBase {

	private Map<String, Object> restResponset;

	public Map<String, Object> getResponseRest(Boolean succes, String message,
			Object data) {
		return this.getResponseRest(succes, message, data, null);
	}

	public Map<String, Object> getResponseRest(Boolean succes, String message,
			Object data, Integer totalCount) {
		restResponset = new HashMap<String, Object>();
		restResponset.put("success", succes);
		restResponset.put("message", message);
		restResponset.put("data", data);
		restResponset.put("count", totalCount);
		return restResponset;
	}

}
